#!/bin/bash  
  
step=1 #间隔的秒数，不能大于60  
  
for (( i = 0; i < 60; i=(i+step) )); do  
	rst=$(curl -x  10.82.44.10:8080 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=wx017cc9d6b5621f08&corpsecret=ikR1czbC-T8kL5go515K3qF9Kiooizewjsc74kHD9gM')  
    echo ${i}\n >>wechattest.log
	printf '%s %s\n' `date "+%Y-%m-%d %H:%M:%S"` $rst >> wechattest.log
	sleep $step  
done  
  
exit 0